Merging projects

When merging projects you can reuse resources and objects you created in another project. Merging projects allows you to import a complete project or only selected resources and objects. During merging Kanzi provides conflict resolution.

Kanzi provides these options for bringing content from other projects:

Merging projects

To merge projects:

  1. Select File > Import > Merge Project, select the project you want to merge (source project) to the currently open project (target project), and click Open.
    Project Merge window opens.
  2. In the Project Merge window set:
  3. Select the checkboxes next to the items you want to merge from the source to target. Depending on the existence of the selected item in the target project, the name of the item is written using:
  4. Resolve conflicts. When your target and source both contain the same item and properties of this item differ, you have to decide which properties you want to keep:
  5. Click Merge.
    Kanzi Studio merges the source with the target by placing the content of source into the corresponding places of the target.

Merging projects using version control tools

After configuring your version control tool you can use the Kanzi merge tool for Kanzi project updating and merging. For the integration Kanzi requires a version control tool that provides the necessary parameters to the Kanzi merge tool.

Example of parameter types Description
MINE The parameter for the source project.
THEIRS The parameter for the target project.
BASE The parameter for the base project.
MERGED The parameter for the merged project.

Integrating the Kanzi merge tool with a version control tool

To integrate the Kanzi merge tool with a version control tool:

  1. Configure your version control tool to use the Kanzi merge tool (<KanziInstallation>/Studio/Bin/KanziMergeTool.bat) for .kzproj files.
  2. Pass to your version control tool the absolute path to the KanziStudio.exe. For example, C:\Program Files (x86)\Rightware\Kanzi\Studio\Bin\KanziStudio.exe.
  3. Set the version control tool parameters for the Kanzi merge tool. For example, these parameters can be called MINE, THEIRS, BASE, MERGED.

Integrating the Kanzi merge tool with SVN version control software

To integrate the Kanzi merge tool with SVN version control software, open the SVN settings and add Kanzi merge tool as an external program for merging files with the .kzproj extension.
For example, if you are using Tortoise SVN, open these settings by going to SVN > Settings > External Programs > Merge Tool > Advanced and set:

See also

Importing projects

Merging 3D assets

Projects

Using version control systems with Kanzi